package com.qzimp.fujiancuo.service.impl;

import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.qzimp.fujiancuo.entity.Cuisine;
import com.qzimp.fujiancuo.entity.Region;
import com.qzimp.fujiancuo.entity.dto.RegionCuisineDto;
import com.qzimp.fujiancuo.mapper.CuisineMapper;
import com.qzimp.fujiancuo.mapper.RegionMapper;
import com.qzimp.fujiancuo.service.CuisineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  服务层实现。
 *
 * @author 李欧雯
 * @since 2024-12-20
 */
@Service
public class CuisineServiceImpl extends ServiceImpl<CuisineMapper, Cuisine> implements CuisineService {
    @Autowired
    private RegionMapper regionMapper;

    @Autowired
    private CuisineMapper cuisineMapper;
    @Override
    public Region selectByName(String regionName) {
        return regionMapper.selectByName(regionName);
    }

    @Override
    public List<Cuisine> selectByRegionId(Integer id) {
        return cuisineMapper.selectByRegionId(id);
    }
}

